@echo off
set SERVICE_NAME=ProjectDailyReport
set SERVICE_HOME=.\bin\Debug
set SERVICE_EXE=%SERVICE_NAME%.exe
REM the following directory is for .NET 2.0, your mileage may vary
set INSTALL_UTIL_HOME=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727


set PATH=%PATH%;%INSTALL_UTIL_HOME%

cd %SERVICE_HOME%

echo Uninstalling Service...
installutil /u /name=%SERVICE_NAME% %SERVICE_EXE%

echo Done.
